import { connect } from 'react-redux';
import React from 'react';
import {
  Switch,
  Route
} from 'react-router-dom';

import TrumpCourseTpl from './trumpCourse_tpl';
import {
  trumpCourseAction
} from './../../actions/a_trumpCourse';

const TrumpCourseView = connect( (store) => {
  return {
    text: store.trumpCourse.trumpCourse
  }
}, {
    trumpCourseAction
})(TrumpCourseTpl);


export const trumpCourseContainer = () => {
  return <Switch>
    <Route path="/trumpCourse" component={TrumpCourseView} />
  </Switch>
}